Action hook 'get_template_part_{$slug}'
in WP Core File wp-includes/general-template.php at line 182
Description
Fires before the specified template part file is loaded. The dynamic portion of the hook name, `$slug`, refers to the slug name for the generic template part.
Occurrences
Filename |
Line Number |
wp-includes/general-template.php |
182 |
Parameters
Type |
Name |
Description |
string |
$slug |
The slug name for the generic template. |
string|null |
$name |
The name of the specialized template or null if there is none. |
array |
$args |
Additional arguments passed to the template. |
PHP Doc
/**
* Fires before the specified template part file is loaded.
*
* The dynamic portion of the hook name, `$slug`, refers to the slug name
* for the generic template part.
*
* @since 3.0.0
* @since 5.5.0 The `$args` parameter was added.
*
* @param string $slug The slug name for the generic template.
* @param string|null $name The name of the specialized template or null if
* there is none.
* @param array $args Additional arguments passed to the template.
*/